package com.pinkpig.excel.row;


import com.pinkpig.excel.row.model.ColumnHeadRowModel;
import com.pinkpig.excel.row.model.ColumnRowModel;
import com.pinkpig.excel.row.model.ColumnTableHeadModel;
import com.pinkpig.excel.row.model.IndexHeadRowModel;
import com.pinkpig.excel.row.model.IndexRowModel;
import com.pinkpig.excel.row.model.TableHeadRowModel;
import com.pinkpig.excel.row.model.TableRowModel;

/**
 * @author fengs
 */
public class RowModelBuilderFactory {

    public static RowModelBuilder getBuilder(Class clazz){
        if(clazz== ColumnHeadRowModel.class){
            return new ColumnHeadRowModelBuilder();
        }else if(clazz== TableRowModel.class){
            return new TableRowModelBuilder();
        }else if(clazz== ColumnRowModel.class){
            return new ColumnRowModelBuilder();
        }else if(clazz== ColumnTableHeadModel.class){
            return new ColumnTableHeadModelBuilder();
        }else if(clazz== TableHeadRowModel.class){
            return new TableHeadRowModelBuilder();
        }else if(clazz== IndexHeadRowModel.class){
            return new IndexHeadRowModelBuilder();
        }else if(clazz== IndexRowModel.class){
            return new IndexRowModelBuilder();
        }else{
            return new EmptyRowModelBuilder();
        }
    }

}
